package com.myapplication.ui.infofragment;

import com.myapplication.bean.ZiXunBean;
import com.myapplication.config.HUrlConfig;
import com.myapplication.http.HttpUtils;

import java.util.Map;

import retrofit2.Callback;

/**
 * Created by zitaojiang on 2016/10/6.
 */
public class Model_Info implements Contract_Info.Model{

    @Override
    public void getData(Map<String, String> params, Callback<ZiXunBean> callback) {
        HttpUtils.getSingletion().getZiXunData(HUrlConfig.Path.ZIXUN_BASEURL,params,callback);
    }

    @Override
    public void getMoreData(Map<String, String> params2, Callback<ZiXunBean> callback) {
        HttpUtils.getSingletion().getZiXunData(HUrlConfig.Path.ZIXUN_BASEURL,params2,callback);
    }

}
